
/* eslint-disable */

export function TMap() {
  return new Promise(function (resolve, reject) {
    window.init = function () {
      resolve(qq)
    }
    // 该js中用document.write加载main.js,在vue中无法动态执行,所以该js放在index.html中加载
    var script = document.createElement('script')
    script.type = 'text/javascript'
    script.src = 'https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js'
    script.onerror = reject
    document.head.appendChild(script)
  })
}
